#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Thu Oct 31 09:03:08 2019

@author: apple
"""

# from flask import Flask
from flask import Flask, escape, request

app = Flask(__name__)


@app.route('/')
def hello_world():
    x1 = request.args.get("x1", 0)
    x2 = request.args.get("x2", 1)
    x3 = request.args.get("x3", 2)
    x4 = request.args.get("x4", 4)
    x1 = int(x1)
    x2 = int(x2)
    x3 = int(x3)
    x4 = int(x4)
    ret = x1 + x2 + x3 * x4
    return str(ret)


if __name__ == '__main__':
    app.run(host='0.0.0.0', port=5000)